package com.mathlearning.auth.dto.comment;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class CommentResponse {
    private Long id;
    private Long discussionId;
    private Long parentId;
    private String content;
    private AuthorInfo author;
    private Integer likes;
    private Integer replies;
    private Boolean isLiked;
    private LocalDateTime createdAt;
    private List<CommentResponse> replyList;

    @Data
    public static class AuthorInfo {
        private Long id;
        private String nickname;
        private String avatar;
        private String location;
        private String badge;
    }
}








